<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>列表页面-上海市嘉定区人民法院</title>
<style>
	
.nav_jd_zi{
	margin-top:-5px;\9;/*ie6,ie7,ie8*/
	*margin-top:-5px;#FFFF00;/*ie7*/
	_margin-top:-95px;#FF0000;/*ie6*/
	margin-left:15px;\9;/*ie6,ie7,ie8*/
	*margin-left:15px;#FFFF00;/*ie7*/
	_margin-left:-95px;#FF0000;/*ie6*/
	display:inline;
	}

.nav_jd_zi{
	margin-top:-5px;	
	margin-left:-20px;
	*margin-left:-105px;
	_margin-left:-95px;
	display:inline;
	}

</style>
<script type="text/javascript" src="web/pages/js/js.js"></script>
<script type="text/javascript">
function nowPage(nPage,countPage,type,action,className){


	className= encodeURI(encodeURI(className));
   if (type==1){
   		if(countPage>nPage){
   		    alert("这已经是最后一页了！");
   			return false;
   		}else if(countPage<1){
   		alert("这已经是第一页了！");
   			return false;
   		}
   		var a= encodeURI(encodeURI(action))+"&pageNum="+countPage+"&cName="+className;
		window.location=a;
   }else{
      var inputPage = document.getElementById("cardId").value;
   		if(inputPage>nPage){
   		alert("超过了最大页数！");
   			return false;
   		}else if(inputPage<1){
   		alert("超过了最小页数！");
   			return false;
   		}
   		var a= encodeURI(encodeURI(action))+"&pageNum="+inputPage+"&cName="+className;
		window.location=a;
   }
  // alert(countPage);
   
   
}


//通用二级页面的跳转共用
function goAction(action,className){
	className= encodeURI(encodeURI(className));
	var str = action+"&cName="+className;
	window.open(str);
  	
}

//通用三级页面的跳转共用
function goDetailAction(action,className){
	className= encodeURI(encodeURI(className));
	var str = action+"&cName="+className;
	window.open(str);
  	
}


</script>
<link rel="stylesheet" href="web/pages/css/jd_css.css" type="text/css" />
</head>
<!-- <body style= "overflow:   hidden "> -->
<body >
   <!--页面开始-->
<div id="container">
  <div id="D-wrapper" align="center" >  
   
    <!--头部开始-->
    <div id="header_jd" >
   <!--logo开始-->
      <div id="D-logo"><a href="mainpageInfo.action"><img src="web/pages/images/logo_left.gif" border="0" width="332" height="69" /></a></div><!--logo结束-->
	  
	   <script>

 function show(id){
    var obj=document.getElementById(id);
    obj.style.display="";
 }
 
  function closes(id){
      var obj=document.getElementById(id);
    obj.style.display="none"; 
 
 }
</script>

 <s:include value="header.jsp"></s:include>	

    </div>	<!--头部结束-->
    <s:if test=" childPage.showArticle.size() == 0 ">
     <s:set name="cid" value=""></s:set>
    </s:if>
    <s:else>
     <s:set name="cid" value="childPage.showArticle[0].classID"></s:set>
    </s:else>
   
   <!--主体内容开始-->
    <div style ="background:url(web/pages/images/page3_fullscreen.png) repeat-y;" id="D-main">
	  <div class="list_address">您所在的位置：首页 >> <s:property value="childPage.currentPosition"/> <br/></div>
	  <div class="list_title"> 
	 <s:property value="childPage.currentPosition"/></div>
	  <div id="D-main-content" style="height:360px; " >
		<div class="xwkj"> 
		   <ul>
		   <s:iterator value="childPage.showArticle">
    			
	 <li>
	 <span class="nr"><a title="" style="cursor:pointer;" onclick="goDetailAction('dtlArticle.action?articleId=<s:property value="articleID"/>&classId=<s:property value="classID"/>','<s:property value="cName"/>')"   target="_blank">
	 <s:property value="title" /></a></span>
	 
	 <span  class="time">[<s:date name="insertTime" format="yyyy-MM-dd"/>]</span>
	 
	
	
	 </li>
 		   </s:iterator>
		   

           </ul>
           
           </div>
		
	  </div>
	  
	  
	 
         <div class="list_page"> 
         
         
        
     共  <s:property value="childPage.resultCount"/>条        
     第   <s:property value="childPage.curPage"/>/<s:property value="childPage.pageCount"/>  页
     <!-- content = encodeURI(encodeURI(content)) -->																																					
     <!-- <a style="cursor:pointer;" onclick="nowPage(1,1,1,'<s:property value="childPage.actionName"/>.action?classId=<s:property value="#cid"/>&actionName=<s:property value="childPage.actionName"/>&parentId=<s:property value="parentId"/>&condition=<s:property value="condition"/>',	<s:property value="className"/>)"><span class="list_page_text"> 首页</span></a> -->
          <a style="cursor:pointer;" onclick="nowPage(1,1,1,'<s:property value="childPage.actionName"/>.action?classId=<s:property value="#cid"/>&actionName=<s:property value="childPage.actionName"/>&parentId=<s:property value="parentId"/>&condition=<s:property value="condition"/>','<s:property value="cName"/>'  )"><span class="list_page_text"> 首页</span></a>  
     <a style="cursor:pointer;" onclick="nowPage(<s:property value="childPage.pageCount"/> ,<s:property value="childPage.curPage"/>-1,1,'<s:property value="childPage.actionName"/>.action?classId=<s:property value="classId"/>&actionName=<s:property value="childPage.actionName"/>&parentId=<s:property value="parentId"/>&condition=<s:property value="condition"/>',	'<s:property value="cName"/>')">上一页</a>  
     <a style="cursor:pointer;" onclick="nowPage(<s:property value="childPage.pageCount"/> ,<s:property value="childPage.curPage"/>+1,1,'<s:property value="childPage.actionName"/>.action?classId=<s:property value="classId"/>&actionName=<s:property value="childPage.actionName"/>&parentId=<s:property value="parentId"/>&condition=<s:property value="condition"/>',	'<s:property value="cName"/>')">下一页</a>  
     <a style="cursor:pointer;" onclick="nowPage(<s:property value="childPage.pageCount"/> ,<s:property value="childPage.pageCount"/>,1,'<s:property value="childPage.actionName"/>.action?classId=<s:property value="classId"/>&actionName=<s:property value="childPage.actionName"/>&parentId=<s:property value="parentId"/>&condition=<s:property value="condition"/>',	'<s:property value="cName"/>')"><span class="list_page_text">  尾页</span></a>   
     转到第  <input  size="7" maxlength="5" type="text"  value="1"class="inputText" id="cardId" name="cardId" style="width:12px" height="12px; vertical-align:middle; align:top"/> 页
     <a style="cursor:pointer;" onclick="nowPage(<s:property value="childPage.pageCount"/>,0,2,'<s:property value="childPage.actionName"/>.action?classId=<s:property value="#cid"/>&actionName=<s:property value="childPage.actionName"/>&parentId=<s:property value="parentId"/>&condition=<s:property value="condition"/>',	'<s:property value="cName"/>')"><img src="web/pages/images/go_btn.png" border="0" width="20" height="26" align="top" /></a> 
     
     </div>
 


	</div><!--主体内容结束-->


 
 <jsp:include page="foot.jsp"/> 

  
  <div>
</div>
</body>
</html>
  
